﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.HeadUpWindow.CApSmartNoteHeadUpWindowManager
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using EngineeringInternalExtension;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.HeadUpWindow;

public class CApSmartNoteHeadUpWindowManager : CApHeadUpWindowManager
{
  private static CApHeadUpWindowManager m_instance;

  private CApSmartNoteHeadUpWindowManager()
  {
  }

  public static CApHeadUpWindowManager Instance
  {
    get
    {
      if (CApSmartNoteHeadUpWindowManager.m_instance == null)
        CApSmartNoteHeadUpWindowManager.m_instance = (CApHeadUpWindowManager) new CApSmartNoteHeadUpWindowManager();
      return CApSmartNoteHeadUpWindowManager.m_instance;
    }
  }

  protected override CUiHeadUpWindow CreateWindow()
  {
    return (CUiHeadUpWindow) new CUiSmartNoteHeadUpWindow();
  }

  protected override bool IsAllowedObject(ITxObject obj)
  {
    TxNote txNote = obj as TxNote;
    return TxNote.op_Inequality(txNote, (ITxObject) null) && base.IsAllowedObject(obj) && TxGenericNoteEx.IsGenericNote(txNote);
  }
}
